'use strict';

module.exports = app => {
	const {INTEGER,STRING}=app.Sequelize;

	const Policy=app.model.define('policy',{
		id:{type:INTEGER,primaryKey:true},
		name:{type:STRING(128)},
		merchant_id:{type:INTEGER},
		daily_first_flow:{type:STRING(32)},
		daily_first_value:{type:STRING(32)},
		daily_second_flow:{type:STRING(32)},
		daily_second_value:{type:STRING(32)},
		daily_third_flow:{type:STRING(32)},
		daily_third_value:{type:STRING(32)},
		month_first_flow:{type:STRING(32)},
		month_first_value:{type:STRING(32)},
		month_second_flow:{type:STRING(32)},
		month_second_value:{type:STRING(32)},
		month_third_flow:{type:STRING(32)},
		month_third_value:{type:STRING(32)},
		status:{type:INTEGER},
		create_time:{type:INTEGER},
		update_time:{type:INTEGER}});
	return Policy;
};